<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script>
            //1.形参初始值,有默认值的参数，一般靠后
                // let add = (a,b,c=3)=> a+b+c;
                // console.log(add(1,2))

            //2.与解构赋值结合
            let connect = ({url="127.0.0.1:8000",name,password}) => {
                console.log(url);
                console.log(name);
                console.log(password);
            };
            connect({
                url:"shangguigu.com",
                name:"wangteng",
                password:123456
            });

        </script>
    </body>
</html>